package org.example.service.impl;

import org.example.domain.SysDept;
import org.example.mapper.SysDeptMapper;
import org.example.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDeptServiceImpl implements SysDeptService {
    @Autowired
    SysDeptMapper sysDeptMapper;
    @Override
    public List<SysDept> deptsList() {
        return sysDeptMapper.deptsList();
    }




    @Override
    public List<SysDept> selectlist(SysDept sysDept) {
        return sysDeptMapper.selectlist(sysDept);
    }

    @Override
    public boolean insertDept(SysDept sysDept) {
        return sysDeptMapper.insertDept(sysDept);

    }

    @Override
    public List<SysDept> list() {

        return   sysDeptMapper.list();
    }

    @Override
    public boolean updateDept(SysDept sysDept) {
        return sysDeptMapper.updateDept(sysDept);
    }

    @Override
    public boolean deleteById(Integer id) {
        return sysDeptMapper.deleteById(id);
    }

    @Override
    public SysDept selectByid(Long deptId) {
        return sysDeptMapper.selectByid(deptId);
    }

    @Override
    public void updateByid(Long deptId) {
        sysDeptMapper.updateByid(deptId);
    }

    @Override
    public void saveDeptBath(List<SysDept> cacheDataList) {
        sysDeptMapper.saveDeptBath(cacheDataList);
    }

}
